/**
 * 
 */
package starcafe.serveur;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

import starcafe.ServeurImpl;

/**
 * Serveru qui gere la BDD
 * @author a.delevaux
 */
public class ApplicationServeur {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ServeurImpl serv;
		try {
			serv = new ServeurImpl();
			LocateRegistry.createRegistry(10122);
			Naming.rebind("rmi://localhost:10122/starbuck", serv);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

}
